package edu.fjut.se1603.yuan.service;

import edu.fjut.se1603.yuan.dao.AccountDao;
import edu.fjut.se1603.yuan.dao.PetDao;
import edu.fjut.se1603.yuan.dao.PetOwnerDao;
import edu.fjut.se1603.yuan.dao.PetStoreDao;
import edu.fjut.se1603.yuan.dao.impl.AccountDaoImpl;
import edu.fjut.se1603.yuan.dao.impl.PetDaoImpl;
import edu.fjut.se1603.yuan.dao.impl.PetOwnerDaoImpl;
import edu.fjut.se1603.yuan.dao.impl.PetStoreDaoImpl;
import edu.fjut.se1603.yuan.entity.Account;
import edu.fjut.se1603.yuan.entity.Pet;
import edu.fjut.se1603.yuan.entity.PetOwner;

import java.util.List;

public interface PetOwnerService {
     PetOwnerDao petOwnerDao = new PetOwnerDaoImpl();
     PetStoreDao petStoreDao = new PetStoreDaoImpl();
     AccountDao accountDao = new AccountDaoImpl();
     PetDao petDao = new PetDaoImpl();
    /**
     * 宠物主人买宠物
     */
    void buy();

    /**
     *宠物主人卖宠物
     */
    void sell();

    /**
     * 通过宠物主人id返回相关账单
     * @param petOwnerId 宠物主人id
     * @return 若成功返回一个账单集合
     */
    List<Account> getAccount(int petOwnerId);

    /**
     * 登陆操作
     */
    void login();
}
